home *** CD-ROM | disk | FTP | other *** search
- Path: news.mindspring.com!usenet
- From: rudd@mindspring.com (Justin Rudd)
- Newsgroups: comp.lang.c++
- Subject: Re: Help! Newbie question ...
- Date: Tue, 19 Mar 1996 17:36:58 GMT
- Organization: MindSpring Enterprises
- Message-ID: <4imrip$8gi@firebrick.mindspring.com>
- References: <4ilkfu$41q@Kaos.deepcove.com>
- Reply-To: rudd@mindspring.com
- NNTP-Posting-Host: rudd.mindspring.com
- X-Newsreader: Forte Free Agent v0.55
-
- saffleck@deepcove.com (Sean Affleck) wrote:
-
- >Is this legal ?
-
- >class A {...};
-
- >A f();
-
- >main() {
- > A a = f();
- >}
-
- >A f()
- >{
- > A fa;
- > return fa;
- >}
-
- Sure is....just make sure you have a copy constructor and an
- assignment operator.
-
- Justin
-
-